const path = require('path');

console.log(path.join("a",'b','/c','/d','e'))
console.log(path.resolve("a",'b','/c','/d','e'))